<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core">
<h:head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>MYMSGRO</title>
	<link rel="stylesheet" type="text/css" href="css/main.css" />
	<link rel="stylesheet" type="text/css" href="css/meniu.css" />
	<link rel="stylesheet" type="text/css" href="css/style.css" />

</h:head>
<h:body>

	<ui:include src="header.xhtml" />

	<h:panelGroup layout="block" id="content">

		<ui:include src="leftMenu.xhtml" />

		<h:panelGroup layout="block" id="contenRight">

			<h:panelGroup layout="block" id="header" style="margin-top: 20px;">
				<ul>
					<li id="selected"><a>My Books</a></li>
				</ul>
			</h:panelGroup>

			<h:panelGroup layout="block" id="contentTab">

				<h:form id="bookSugestion">

					<h:commandButton value="back to books"
						action="#{bookTableData.backToBooks}" />
					<table>
						<tr>
							<td><h:outputText value="Book's Title:" /></td>
							<td><h:inputText id="sugestionName"
									value="#{bookTableData.sugestionBookName}" /><font color="red">*</font>
								<br /></td>
						</tr>
						<tr>
							<td><h:outputText value="Author:" /></td>
							<td><h:inputText id="sugestionAuthor"
									value="#{bookTableData.sugestionBookAuthor}" /><font
								color="red">*</font> <br /></td>
						</tr>
						<tr>
							<td></td>
							<td><font color="red" size="1">*fields mandatory</font></td>
						</tr>
						<tr>
							<td><h:commandButton id="saveButton" value="Sugest book"
									action="#{bookTableData.sugestBook}" /></td>

							<td><h:commandButton id="cancelButton" value="Cancel"
									action="#{bookTableData.clearSugetsion}" /> <br /></td>
						</tr>
					</table>
					<h:outputText value="#{bookTableData.sugestionInfoMessage}" />

				</h:form>
			</h:panelGroup>
		</h:panelGroup>
	</h:panelGroup>
</h:body>
</html>
